<template>
	<view class="flex-col page">
		<view class="flex-col group" v-if="article.length>0">
			<text class="text_1">
				<u-parse :content="article"></u-parse>
			</text>
		</view>
		<view v-else>
			<u-empty mode="data" width="250" textSize="25" marginTop="50%" icon="http://cdn.uviewui.com/uview/empty/data.png">
			</u-empty>
		</view>
	</view>
	<!-- <view class="flex-col page">
		<view class="flex-col group">
			<view class="text_1">
				<view class="box">
<image src="http://107.148.1.63/user/login/logo.png
" mode=""></image>
				</view>
				<view class="text">
					当前版本1.0
				</view>
			</view>
		</view>
		<view class="bottom">
			<view class="">
				Copyright@2022 家装顾问
			</view>
			<view class="">
				All Ringhts Reserved
			</view>
		</view>
	</view> -->
</template>

<script>
	export default {
		components: {},
		data() {
			return {
				article: '',
				identification:'',
				articleTitle: ''
			};
		},
		onLoad(option) {
			this.identification = option.identification
			if (option.hasOwnProperty('identification')) {
				this.identification = option.identification
				this.getIdentification(this.identification);
			} else {
				// this.$u.toast('参数异常');
			}
			// uni.setNavigationBarTitle({
			// 	title: '关于我们'
			// });
		},
		created() {
			this.getIdentification();
		},
		methods: {
			getIdentification(identification) {
				this.$http('identification', {
					identification:this.identification
				}).then(r => {
					// console.log(r);
					if (r.code == 200) {
						this.article = r.data.articleContent;
						this.articleTitle = r.data.articleTitle;
						uni.setNavigationBarTitle({
							title: this.articleTitle
						});

					}
				})
			}
		},
	};
</script>

<style scoped lang="scss">
	/deep/ uni-image>img {
		opacity:1 !important;
	}
	.box {
		width: 200rpx;
		height: 200rpx;
		border-radius: 40rpx;
		// background-color: #1c6afe;
		/deep/ image {
			width: 100%;
			height: 100%;
			
		}
	}

	.text {
		padding-top: 40rpx;
		color: #191919;
		font-size: 32rpx;
	}

	.bottom {
		height: 650rpx;
		display: flex;
		justify-content: flex-end;
		align-items: center;
		flex-direction: column;
		color: #d1d1d1;
		line-height: 60rpx;
		padding-top: 380rpx;
	}

	.page {
		background-color: #ffffffff;
		width: 100%;
		overflow-y: auto;
		overflow-x: hidden;
		height: 100%;
	}

	.group {
		padding: 50rpx 32rpx;
		flex: 1 1 auto;
		overflow-y: auto;
	}

	.text_1 {
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		height: 100%;
		color: #191919;
		font-size: 32rpx;
		font-family: '.AppleSystemUIFont';
		line-height: 38rpx;
		text-align: left;
	}

	.text_2 {
		margin-top: 46rpx;
		color: #333333;
		font-size: 28rpx;
		font-family: '.AppleSystemUIFont';
		line-height: 33rpx;
		text-align: left;
		text-indent: 37rpx;
	}
</style>
